﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace NETCORE.OdataRestful
{
    /// <summary>
    /// 地址
    /// </summary>
    public class Address
    {
        /// <summary>
        /// 城市 
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 街区
        /// </summary>
        public string Street { get; set; }
    }
    public enum Category
    {
        Book,
        Magazine,
        EBook
    }

    public enum cc
    {
        a, b, c
    }

    public class Press
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Email { get; set; }
        public Category Category { get; set; }
    }
    /// <summary>
    /// 书
    /// </summary>
    public class Book
    {
        /// <summary>
        /// ID
        /// </summary>
        public int Id { get; set; }

        public long? IdLong { get; set; }
        public string ISBN { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        public string Author { get; set; }
        public decimal Price { get; set; }
        public List<Address> AddressList { get; set; }
        public Press Press { get; set; }
    }
}
